package academic.ui.client.jquery;

public class JQuery {

	public static native void fadeInErrors() /*-{
		$wnd.$(document).ready(function(){	
			$wnd.$(".errorMsgs").fadeIn("slow");
		}
		);
	}-*/;
	
	public static native void fadeOutErrors() /*-{
	$wnd.$(document).ready(function(){	
		$wnd.$(".errorMsgs").fadeOut("slow");
	}
	);
	}-*/;

	public static native void hideAllErrors() /*-{
		$wnd.$(document).ready(function(){	
			$wnd.$(".errorMsgs").each(function(index) {
				$wnd.$(this).css("display","none");
			});
		});
	}-*/;
	
	public static native void slideTimerUp() /*-{
		$wnd.$(document).ready(function(){	
			$wnd.$(".timerDiv").slideDown(1000);
			}
		);
	}-*/;

	public static native void slideMsgUp() /*-{
		$wnd.$(".aMessage").first().hide();
		$wnd.$(document).ready(function(){	
			$wnd.$(".aMessage").first().slideDown(1000);
			}
		);
	}-*/;

	
}
